import { Module } from '@nestjs/common';
import { AuthService } from './auth.service';
import { AuthController } from './auth.controller';
import { UserModule } from 'src/user/user.module';
import { PassportModule } from '@nestjs/passport';
import { JwtModule } from '@nestjs/jwt';
import { jwtStrategy } from './jwt.strategy';
import { Web3Module } from 'src/web3/web3.module';

@Module({
  imports:[
    UserModule,
    PassportModule,
    Web3Module,
    JwtModule.register({
      secret: 'jwtConstantsSecret',
      signOptions: { expiresIn: '1d' },
    })],
  providers: [AuthService,jwtStrategy],
  controllers: [AuthController]
})
export class AuthModule {}
